home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 684 / 684.xpi / chrome / fireftp.jar / content / alert.xul < prev    next >
Extensible Markup Language  |  2006-08-28  |  1KB  |  35 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/global.css"   type="text/css"?>
  4. <?xml-stylesheet href="chrome://fireftp/skin/fireftp.css" type="text/css"?>
  5.  
  6. <dialog id             = "alert"
  7.         title          = "FireFTP"
  8.         width          = "400"
  9.         height         = "200"
  10.         xmlns          = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  11.         persist        = "screenX screenY width height"
  12.         onload         = "init()"
  13.         buttons        = "accept"
  14.         ondialogaccept = "return true">
  15.  
  16.   <script type="application/x-javascript" src="chrome://fireftp/content/js/etc/common.js"/>
  17.   <script>
  18.     <![CDATA[
  19.       function init() {
  20.         $('alert').getButton('accept').focus();
  21.         $('message').value = window.arguments[0];
  22.         window.getAttention();
  23.       }
  24.  
  25.       function add(msg) {
  26.         $('message').value += '\n' + msg;
  27.         window.getAttention();
  28.       }
  29.     ]]>
  30.   </script>
  31.  
  32.   <textbox id="message" flex="1" multiline="true" readonly="true" value=""/>
  33.  
  34. </dialog>
  35.